package edu.ynu.se.xiecheng.achitectureclass.constant;

/**
 * 传感器相关常量
 */
public class SensorConstants {
    /**
     * 大棚编号
     */
    public static final String GREENHOUSE_BOX_NO = "300023040085";

    /**
     * 传感器ID常量
     */
    public static class SensorIds {
        /**
         * 土壤温度传感器ID
         */
        public static final String SOIL_TEMPERATURE = "327061375295689614";
        
        /**
         * 土壤PH值传感器ID
         */
        public static final String SOIL_PH = "327061375295689606";
        
        /**
         * 土壤氮含量传感器ID
         */
        public static final String SOIL_NITROGEN = "327061375295689607";
        
        /**
         * 土壤磷含量传感器ID
         */
        public static final String SOIL_PHOSPHORUS = "327061375295689608";
        
        /**
         * 土壤钾含量传感器ID
         */
        public static final String SOIL_POTASSIUM = "327061375295689609";
        
        /**
         * 空气温度传感器ID
         */
        public static final String AIR_TEMPERATURE = "327061375295689611";
        
        /**
         * 空气相对湿度传感器ID
         */
        public static final String AIR_HUMIDITY = "327061375295689612";
    }

    /**
     * 传感器名称常量
     */
    public static class SensorNames {
        public static final String AIR_TEMPERATURE = "空气温度";
        public static final String AIR_HUMIDITY = "空气湿度";
        public static final String SOIL_TEMPERATURE = "土壤温度";
        public static final String SOIL_PH = "土壤PH值";
        public static final String SOIL_NITROGEN = "土壤氮含量";
        public static final String SOIL_PHOSPHORUS = "土壤磷含量";
        public static final String SOIL_POTASSIUM = "土壤钾含量";
    }

    /**
     * API相关常量
     */
    public static class ApiConstants {
        public static final String DATA_URL = "https://fbox360.com/api/v2/dmon/value/get";
        public static final int REQUEST_COOLDOWN_SECONDS = 5;  // 接口调用冷却时间（秒）
    }
} 